home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20010921-20020314 / 000081_fdc@watsun.cc.columbia.edu_Fri Oct 26 17:00:32 EDT 2001.msg < prev    next >
Text File  |  2020-01-01  |  3KB  |  70 lines

  1. Article: 12895 of comp.protocols.kermit.misc
  2. Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
  3. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  4. Newsgroups: comp.protocols.kermit.misc
  5. Subject: Re: Ques with file
  6. Date: 26 Oct 2001 21:01:07 GMT
  7. Organization: Columbia University
  8. Lines: 53
  9. Message-ID: <9rciuj$hv1$1@newsmaster.cc.columbia.edu>
  10. References: <Pine.SOL.4.30.0110241624320.4071-100000@phaet.cedar.buffalo.edu> <9r79hi$mvt$1@newsmaster.cc.columbia.edu> <Pine.SOL.4.30.0110242037050.4071-100000@phaet.cedar.buffalo.edu>
  11. NNTP-Posting-Host: watsun.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1004130067 18401 128.59.39.2 (26 Oct 2001 21:01:07 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 26 Oct 2001 21:01:07 GMT
  15. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12895
  16.  
  17. In article <Pine.SOL.4.30.0110242037050.4071-100000@phaet.cedar.buffalo.edu>,
  18. Anish A Patankar  <patankar@acsu.buffalo.edu> wrote:
  19. : On 24 Oct 2001, Frank da Cruz wrote:
  20. : > In article
  21. : > <Pine.SOL.4.30.0110241624320.4071-100000@phaet.cedar.buffalo.edu>,
  22. : > Anish A Patankar  <patankar@acsu.buffalo.edu> wrote:
  23. : > :
  24. : > : I can get the output from a serial device on the terminal window.
  25. : > : Can anyone please suggest how do i write that output to a file?
  26. : > : I tried the receive -ASname option etc.. but that does help.
  27. : > :
  28. : > Depending on which Kermit program you're talking about, and how you are
  29. : > using it, the easiest way to record stuff coming in a serial port is
  30. : > with the LOG SESSION command.
  31. : >
  32. : > - Frank
  33.  
  34. : What i am doing is that I am taking a image snapshot and i want the data
  35. : that comes from serial port (using C-Kermit) to be written to a file.
  36. : I tried all the options with the receive and get and that did not help.
  37. : the receive /as:name option does not create a new file....
  38. : Can please anyone know how a file of the incoming data can be created?
  39. With the LOG SESSION command, as suggested previously.  SEND, RECEIVE,
  40. GET, and such are for protocol transfers.  In this case you just want to
  41. capture whatever bytes are arriving -- that's what LOG SESSION is for.
  42. The easiest way to use it is as follows:
  43.  
  44.   set modem type none
  45.   set carrier-watch off      ; if necessary
  46.   set port /dev/ttyS0        ; or whatever
  47.   set speed 57600            ; or whatever
  48.   set flow rts/cts           ; or Xon/Xoff or None
  49.   log session shapshot.log   ; Start session log
  50.   connect
  51.  
  52. >From this point until you escape back with Ctrl-\c, all the incoming
  53. bytes are recorded in the file called shapshot.log.  There are other
  54. ways to do it too, but this is the most straightforward.
  55.  
  56. All this is assuming it's a text file.  If it's a binary file, such as a
  57. Jpeg image, you're not necessarily going to be able to transfer it this way
  58. due to lack of transparency of the connection to arbitrary bit patterns.
  59. Use Kermit or some other protocol to transfer it.  If protocol transfers
  60. are not available, try the above sequence but before giving the LOG SESSION
  61. command, use:
  62.  
  63.   set session-log binary
  64.  
  65. But there can be guarantees.  Even if the data arrives intact, how do you
  66. know where the beginning and end are?
  67.  
  68. - Frank
  69.